<template>
  <div>
    <!-- 不解析html标签(不常用) -->
   v-text: <span v-text="msg1">
    </span> <br>
    <!-- 解析html标签(慎用) -->
   v-html: <span v-html="msg2">
  </span>
</div>
</template>

<script>
export default {
    name:"v_text_html",
    data(){
        return {
            msg1:"<input type='text' name='' id=''>",
            msg2:"<input type='text' name='' id=''>"
        }
    }
}
</script>

<style>

</style>